import request from '@/utils/request';

export function login(userInfo) {
  return request.post(
    '/auth/login/' + userInfo.username + '/' + userInfo.password
  );
}

export function getUserInfo() {
  return request.get('/auth/userinfo');
}

export function getAccountInfo(accountId) {
  return request.get('/account/info/' + accountId);
}

export function logout() {
  // do nothing
  return Promise.resolve();
  // return request.post('/user/logout');
}
